﻿namespace PowerSong.Import
    {
    using System.Collections.Generic;
    using PowerSong.SongDatabase;

    public class ModernDatabaseImport : BaseImport
        {

        private string fileName = null;

        public ModernDatabaseImport(Database destinationDatabase, string fileName)
            : base(destinationDatabase)
            {
            this.fileName = fileName;
            }

        protected override void Import(Category category, List<string> messages)
            {

            // Load the database
            var source = Database.Load(fileName);

            // Perform the import
            Destination.Merge(source);;

            }

        }

    }
